const state = {
  name: false,
};

const mutations = {
  update(state, { path, value }) {
    state[path] = value;
  },
};

const actions = {
  setUpName({ commit }, params) {
    console.log("======params>>>>====", params);
    commit("update", { path: "name", value: !state.name });
  },
};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
};
